from collections import Counter

text = input('请输入一段文本，空格隔开！：')

dict1 = Counter(text.split())

for key, value in dict1.items():
   print(f"{key}: {value}")

